import request from '@/utils/request'

const apiName = "/system/sys-permission"

export default {
  getAllPermission: _ => request({
    url: `${apiName}/getAllPermission`,
    method: 'Get',
  }),


  getRolePermission: params => request({
    url: `${apiName}/getRolePermission`,
    method: 'Get',
    params: params
  }),
}
